package com.yuanchuang.yp.mall.web.admin.common.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * class_name: JwtToken
 * package: com.yuanchuang.yp.mall.web.admin.common.config.shiro
 * describe: TODO
 * @author: yuanyaun
 * creat_date: 2019/7/16
 * creat_time: 15:29
 **/
public class JwtToken implements AuthenticationToken {
    private String token;

    public JwtToken(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
